﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IFServerDLL;
using IFServerDLL.Model;

namespace IFDemoServer
{
    public class RspClient : IResponeData
    {
        private Guid _userID;
        public RspClient(Guid userID)
        {
            _userID = userID;
        }
        public void RspOrder( OrderBase order)
        {
            ClientCallbackQueue.DoMothed(_userID, "RspOrder", order);
        }

        public void RspTrade(TradeBase trade)
        {
            ClientCallbackQueue.DoMothed(_userID, "RspTrade", trade);
        }

        public void RspMsg(MessageBase msg)
        {
            ClientCallbackQueue.DoMothed(_userID, "RspMsg", "Service:" + msg);
        }
    }
}
